package com.example.mqdemo.rabbitmq.HelloWorld.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HelloWorldConfig {

    //初始化队列
    @Bean
    Queue queue1() {
        return new Queue("helloworld");
    }
}
